package com.ziytek.web.citizen.model.rsp;

import lombok.Data;

import java.time.LocalDateTime;
import java.util.Map;

/**
 * @author fenghx
 * @version 1.0
 * @className ErrorResponse
 * Description:
 * @date 2025/3/11 20:11
 */
@Data
public class ErrorResponse {
    private String code;
    private String message;
    private Map<String, String> errors;
    private LocalDateTime timestamp;

    public ErrorResponse(String message, Map<String, String> errors) {
        this.code = "80001";
        this.message = message;
        this.errors = errors;
        this.timestamp = LocalDateTime.now();
    }
}